import request from './utils/request'

export default {
    //登录的方法
  submitLoginUser(userInfo) {
    return request({
      url: `/eduservice/ucenter_member/login`,
      method: 'post',
      data: userInfo
    })
  },

  //根据token获取用户信息
  getLoginUserInfo() {
    return request({
      url: `/eduservice/ucenter_member/getMemberInfo`,
      method: 'get'
    })
  },
  updateInfo(entity) {
    return request({
      url: `/eduservice/ucenter_member/`,
      method: 'put',
      data: entity
    })
  },
  binding(info) {
  return request({
    url: `/eduservice/ucenter_member/binding`,
    method: 'post',
    data: info
  })
}

}
